package cn.nawang.ebeim.api.repository;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

import cn.nawang.ebeim.api.domain.StorageFile;

/**
 * @ClassName: StorageFileRepository
 * @Description: TODO
 * @author fanyb
 * @date Aug 27, 2015 8:34:24 AM
 * @version v1.0
 */
public interface StorageFileRepository extends JpaRepository<StorageFile, String>{
  
  @Query("from StorageFile where datasourceId=?1 and signature=?2")
  public StorageFile findByDatasourceIDAndSignature(String datasourceId,String signature);
}
